package com.example.dto;

import com.example.model.dto.BaseDTO;
import com.example.validator.group.AddGroup;
import com.example.validator.group.DefaultGroup;
import com.example.validator.group.UpdateGroup;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

import lombok.Data;

import java.util.Date;

/**
 * 租户信息表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 1.0-SNAPSHOT 2025-04-19
 */
@Data
@Schema(description = "租户信息表")
public class SysTenantDTO extends BaseDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    @Schema(description = "租户ID")
    private Long tenantId;
    @NotNull(message = "{id.require}", groups = DefaultGroup.class)
    @Schema(description = "租户名称")
    private String name;
    @NotNull(message = "{id.require}", groups = DefaultGroup.class)
    @Schema(description = "联系方式")
    private String contactPhone;
    @NotNull(message = "{id.require}", groups = DefaultGroup.class)
    @Schema(description = "状态(0停用1启用)")
    private Integer status;
    @Schema(description = "是否是超级租户")
    private Integer isSuperTenant;

}